]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: Remove _updateAdjustment
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Sep 2013 12:41:24 +0000 (14:41 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 5 Sep 2013 16:18:05 +0000 (18:18 +0200)
Provided that PaginatedIconGrid's height request is correct, we
can rely on StBoxLayout to update the adjustment correctly.

js/ui/appDisplay.js

index ece06a56d39a6b8ab1f8cf5da0d3f7d9eee68193..7ef827228ba2d6215295be759388e1f36193254e 100644 (file)
@@ -505,11 +505,6 @@ const AllView = new Lang.Class({
         this.goToPage(itemPage);
     },
 
-    _updateAdjustment: function(availHeight) {
-        this._adjustment.page_size = availHeight;
-        this._adjustment.upper = this._stack.height;
-    },
-
     _updateIconOpacities: function(folderOpen) {
         for (let id in this._items) {
             let params, opacity;
@@ -538,8 +533,6 @@ const AllView = new Lang.Class({
         let availHeight = box.y2 - box.y1;
         let oldNPages = this._grid.nPages();
 
-        this._updateAdjustment(availHeight);
-
         this._grid.adaptToSize(availWidth, availHeight);
 
         let fadeOffset = Math.min(this._grid.topPadding,